home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / postscr.vim < prev    next >
Encoding:
Text File  |  2001-07-28  |  44.8 KB  |  784 lines

  1. " Vim syntax file
  2. " Language:     PostScript - all Levels, selectable
  3. " Maintainer:   Mike Williams <mrw@netcomuk.co.uk>
  4. " Filenames:    *.ps,*.eps
  5. " Last Change:  6th June 2000
  6. " URL:          http://www.netcomuk.co.uk/~mrw/vim
  7. "
  8. " Options Flags:
  9. " postscr_level                 - language level to use for highligting (1, 2, or 3)
  10. " postscr_display               - include display PS operators
  11. " postscr_ghostscript           - include GS extensions
  12. " postscr_fonts                 - highlight standard font names (a lot for PS 3)
  13. " postscr_encodings             - highlight encoding names (there are a lot)
  14. " postscr_andornot_binary       - highlight and, or, and not as binary operators (not logical)
  15. "
  16. " For version 5.x: Clear all syntax items
  17. " For version 6.x: Quit when a syntax file was already loaded
  18. if version < 600
  19.   syntax clear
  20. elseif exists("b:current_syntax")
  21.   finish
  22. endif
  23.  
  24. " PostScript is case sensitive
  25. syn case match
  26.  
  27. " Keyword characters - all 7-bit ASCII bar PS delimiters and ws
  28. if version >= 600
  29.   setlocal iskeyword=33-127,^(,^),^<,^>,^[,^],^{,^},^/,^%
  30. else
  31.   set iskeyword=33-127,^(,^),^<,^>,^[,^],^{,^},^/,^%
  32. endif
  33.  
  34. " Yer trusty old TODO highlghter!
  35. syn keyword postscrTodo contained  TODO
  36.  
  37. " Comment
  38. syn match postscrComment        "%.*$" contains=postscrTodo
  39. " DSC comment start line (NB: defines DSC level, not PS level!)
  40. syn match  postscrDSCComment    "^%!PS-Adobe-\d\+\.\d\+\s*.*$"
  41. " DSC comment line (no check on possible comments - another language!)
  42. syn match  postscrDSCComment    "^%%\u\+.*$" contains=@postscrString,@postscrNumber
  43. " DSC continuation line (no check that previous line is DSC comment)
  44. syn match  postscrDSCComment    "^%%+ *.*$" contains=@postscrString,@postscrNumber
  45.  
  46. " Names
  47. syn match postscrName           "\k\+"
  48.  
  49. " Identifiers
  50. syn match postscrIdentifierError "/\{1,2}[[:space:]\[\]{}]"me=e-1
  51. syn match postscrIdentifier     "/\{1,2}\k\+" contains=postscrConstant,postscrBoolean,postscrCustConstant
  52.  
  53. " Numbers
  54. syn case ignore
  55. " In file hex data - usually complete lines
  56. syn match postscrHex            "^[[:xdigit:]][[:xdigit:][:space:]]*$"
  57. "syn match postscrHex            "\<\x\{2,}\>"
  58. " Integers
  59. syn match postscrInteger        "\<[+-]\=\d\+\>"
  60. " Radix
  61. syn match postscrRadix          "\d\+#\x\+\>"
  62. " Reals - upper and lower case e is allowed
  63. syn match postscrFloat          "[+-]\=\d\+\.\>"
  64. syn match postscrFloat          "[+-]\=\d\+\.\d*\(e[+-]\=\d\+\)\=\>"
  65. syn match postscrFloat          "[+-]\=\.\d\+\(e[+-]\=\d\+\)\=\>"
  66. syn match postscrFloat          "[+-]\=\d\+e[+-]\=\d\+\>"
  67. syn cluster postscrNumber       contains=postscrInteger,postscrRadix,postscrFloat
  68. syn case match
  69.  
  70. " Escaped characters
  71. syn match postscrSpecialChar    contained "\\[nrtbf\\()]"
  72. syn match postscrSpecialCharError contained "\\[^nrtbf\\()]"he=e-1
  73. " Escaped octal characters
  74. syn match postscrSpecialChar    contained "\\\o\{1,3}"
  75.  
  76. " Strings
  77. " ASCII strings
  78. syn region postscrASCIIString   start=+(+ end=+)+ skip=+([^)]*)+ contains=postscrSpecialChar,postscrSpecialCharError
  79. " Hex strings
  80. syn match postscrHexCharError   contained "[^<>[:xdigit:][:space:]]"
  81. syn region postscrHexString     start=+<\($\|[^<]\)+ end=+>+ contains=postscrHexCharError
  82. syn match postscrHexString      "<>"
  83. " ASCII85 strings
  84. syn match postscrASCII85CharError contained "[^<>\~!-uz[:space:]]"
  85. syn region postscrASCII85String start=+<\~+ end=+\~>+ contains=postscrASCII85CharError
  86. syn cluster postscrString       contains=postscrASCIIString,postscrHexString,postscrASCII85String
  87.  
  88.  
  89. " Set default highlighting to level 2 - most common at the moment
  90. if !exists("postscr_level")
  91.   let postscr_level = 2
  92. endif
  93.  
  94.  
  95. " PS level 1 operators - common to all levels (well ...)
  96.  
  97. " Stack operators
  98. syn keyword postscrOperator     pop exch dup copy index roll clear count mark cleartomark counttomark
  99.  
  100. " Math operators
  101. syn keyword postscrMathOperator add div idiv mod mul sub abs neg ceiling floor round truncate sqrt atan cos
  102. syn keyword postscrMathOperator sin exp ln log rand srand rrand
  103.  
  104. " Array operators
  105. syn match postscrOperator       "[\[\]{}]"
  106. syn keyword postscrOperator     array length get put getinterval putinterval astore aload copy
  107. syn keyword postscrRepeat       forall
  108.  
  109. " Dictionary operators
  110. syn keyword postscrOperator     dict maxlength begin end def load store known where currentdict
  111. syn keyword postscrOperator     countdictstack dictstack cleardictstack internaldict
  112. syn keyword postscrConstant     $error systemdict userdict statusdict errordict
  113.  
  114. " String operators
  115. syn keyword postscrOperator     string anchorsearch search token
  116.  
  117. " Logic operators
  118. syn keyword postscrLogicalOperator eq ne ge gt le lt and not or
  119. if exists("postscr_andornot_binaryop")
  120.   syn keyword postscrBinaryOperator and or not
  121. else
  122.   syn keyword postscrLogicalOperator and not or
  123. endif
  124. syn keyword postscrBinaryOperator xor bitshift
  125. syn keyword postscrBoolean      true false
  126.  
  127. " PS Type names
  128. syn keyword postscrConstant     arraytype booleantype conditiontype dicttype filetype fonttype gstatetype
  129. syn keyword postscrConstant     integertype locktype marktype nametype nulltype operatortype
  130. syn keyword postscrConstant     packedarraytype realtype savetype stringtype
  131.  
  132. " Control operators
  133. syn keyword postscrConditional  if ifelse
  134. syn keyword postscrRepeat       for repeat loop
  135. syn keyword postscrOperator     exec exit stop stopped countexecstack execstack quit
  136. syn keyword postscrProcedure    start
  137.  
  138. " Object operators
  139. syn keyword postscrOperator     type cvlit cvx xcheck executeonly noaccess readonly rcheck wcheck cvi cvn cvr
  140. syn keyword postscrOperator     cvrs cvs
  141.  
  142. " File operators
  143. syn keyword postscrOperator     file closefile read write readhexstring writehexstring readstring writestring
  144. syn keyword postscrOperator     bytesavailable flush flushfile resetfile status run currentfile print
  145. syn keyword postscrOperator     stack pstack readline deletefile setfileposition fileposition renamefile
  146. syn keyword postscrRepeat       filenameforall
  147. syn keyword postscrProcedure    = ==
  148.  
  149. " VM operators
  150. syn keyword postscrOperator     save restore
  151.  
  152. " Misc operators
  153. syn keyword postscrOperator     bind null usertime executive echo realtime
  154. syn keyword postscrConstant     product revision serialnumber version
  155. syn keyword postscrProcedure    prompt
  156.  
  157. " GState operators
  158. syn keyword postscrOperator     gsave grestore grestoreall initgraphics setlinewidth setlinecap currentgray
  159. syn keyword postscrOperator     currentlinejoin setmiterlimit currentmiterlimit setdash currentdash setgray
  160. syn keyword postscrOperator     sethsbcolor currenthsbcolor setrgbcolor currentrgbcolor currentlinewidth
  161. syn keyword postscrOperator     currentlinecap setlinejoin setcmykcolor currentcmykcolor
  162.  
  163. " Device gstate operators
  164. syn keyword postscrOperator     setscreen currentscreen settransfer currenttransfer setflat currentflat
  165. syn keyword postscrOperator     currentblackgeneration setblackgeneration setundercolorremoval
  166. syn keyword postscrOperator     setcolorscreen currentcolorscreen setcolortransfer currentcolortransfer
  167. syn keyword postscrOperator     currentundercolorremoval
  168.  
  169. " Matrix operators
  170. syn keyword postscrOperator     matrix initmatrix identmatrix defaultmatrix currentmatrix setmatrix translate
  171. syn keyword postscrOperator     concat concatmatrix transform dtransform itransform idtransform invertmatrix
  172. syn keyword postscrOperator     scale rotate
  173.  
  174. " Path operators
  175. syn keyword postscrOperator     newpath currentpoint moveto rmoveto lineto rlineto arc arcn arcto curveto
  176. syn keyword postscrOperator     closepath flattenpath reversepath strokepath charpath clippath pathbbox
  177. syn keyword postscrOperator     initclip clip eoclip rcurveto
  178. syn keyword postscrRepeat       pathforall
  179.  
  180. " Painting operators
  181. syn keyword postscrOperator     erasepage fill eofill stroke image imagemask colorimage
  182.  
  183. " Device operators
  184. syn keyword postscrOperator     showpage copypage nulldevice
  185.  
  186. " Character operators
  187. syn keyword postscrProcedure    findfont
  188. syn keyword postscrConstant     FontDirectory ISOLatin1Encoding StandardEncoding
  189. syn keyword postscrOperator     definefont scalefont makefont setfont currentfont show ashow
  190. syn keyword postscrOperator     stringwidth kshow setcachedevice
  191. syn keyword postscrOperator     setcharwidth widthshow awidthshow findencoding cshow rootfont setcachedevice2
  192.  
  193. " Interpreter operators
  194. syn keyword postscrOperator     vmstatus cachestatus setcachelimit
  195.  
  196. " PS constants
  197. syn keyword postscrConstant     contained Gray Red Green Blue All None DeviceGray DeviceRGB
  198.  
  199. " PS Filters
  200. syn keyword postscrConstant     contained ASCIIHexDecode ASCIIHexEncode ASCII85Decode ASCII85Encode LZWDecode
  201. syn keyword postscrConstant     contained RunLengthDecode RunLengthEncode SubFileDecode NullEncode
  202. syn keyword postscrConstant     contained GIFDecode PNGDecode LZWEncode
  203.  
  204. " PS JPEG filter dictionary entries
  205. syn keyword postscrConstant     contained DCTEncode DCTDecode Colors HSamples VSamples QuantTables QFactor
  206. syn keyword postscrConstant     contained HuffTables ColorTransform
  207.  
  208. " PS CCITT filter dictionary entries
  209. syn keyword postscrConstant     contained CCITTFaxEncode CCITTFaxDecode Uncompressed K EndOfLine
  210. syn keyword postscrConstant     contained Columns Rows EndOfBlock Blacks1 DamagedRowsBeforeError
  211. syn keyword postscrConstant     contained EncodedByteAlign
  212.  
  213. " PS Form dictionary entries
  214. syn keyword postscrConstant     contained FormType XUID BBox Matrix PaintProc Implementation
  215.  
  216. " PS Errors
  217. syn keyword postscrProcedure    handleerror
  218. syn keyword postscrConstant     contained  configurationerror dictfull dictstackunderflow dictstackoverflow
  219. syn keyword postscrConstant     contained  execstackoverflow interrupt invalidaccess
  220. syn keyword postscrConstant     contained  invalidcontext invalidexit invalidfileaccess invalidfont
  221. syn keyword postscrConstant     contained  invalidid invalidrestore ioerror limitcheck nocurrentpoint
  222. syn keyword postscrConstant     contained  rangecheck stackoverflow stackunderflow syntaxerror timeout
  223. syn keyword postscrConstant     contained  typecheck undefined undefinedfilename undefinedresource
  224. syn keyword postscrConstant     contained  undefinedresult unmatchedmark unregistered VMerror
  225.  
  226. if exists("postscr_fonts")
  227. " Font names
  228.   syn keyword postscrConstant   contained Symbol Times-Roman Times-Italic Times-Bold Times-BoldItalic
  229.   syn keyword postscrConstant   contained Helvetica Helvetica-Oblique Helvetica-Bold Helvetica-BoldOblique
  230.   syn keyword postscrConstant   contained Courier Courier-Oblique Courier-Bold Courier-BoldOblique
  231. endif
  232.  
  233.  
  234. if exists("postscr_display")
  235. " Display PS only operators
  236.   syn keyword postscrOperator   currentcontext fork join detach lock monitor condition wait notify yield
  237.   syn keyword postscrOperator   viewclip eoviewclip rectviewclip initviewclip viewclippath deviceinfo
  238.   syn keyword postscrOperator   sethalftonephase currenthalftonephase wtranslation defineusername
  239. endif
  240.  
  241. " PS Character encoding names
  242. if exists("postscr_encodings")
  243. " Common encoding names
  244.   syn keyword postscrConstant   contained .notdef
  245.  
  246. " Standard and ISO encoding names
  247.   syn keyword postscrConstant   contained space exclam quotedbl numbersign dollar percent ampersand quoteright
  248.   syn keyword postscrConstant   contained parenleft parenright asterisk plus comma hyphen period slash zero
  249.   syn keyword postscrConstant   contained one two three four five six seven eight nine colon semicolon less
  250.   syn keyword postscrConstant   contained equal greater question at
  251.   syn keyword postscrConstant   contained bracketleft backslash bracketright asciicircum underscore quoteleft
  252.   syn keyword postscrConstant   contained braceleft bar braceright asciitilde
  253.   syn keyword postscrConstant   contained exclamdown cent sterling fraction yen florin section currency
  254.   syn keyword postscrConstant   contained quotesingle quotedblleft guillemotleft guilsinglleft guilsinglright
  255.   syn keyword postscrConstant   contained fi fl endash dagger daggerdbl periodcentered paragraph bullet
  256.   syn keyword postscrConstant   contained quotesinglbase quotedblbase quotedblright guillemotright ellipsis
  257.   syn keyword postscrConstant   contained perthousand questiondown grave acute circumflex tilde macron breve
  258.   syn keyword postscrConstant   contained dotaccent dieresis ring cedilla hungarumlaut ogonek caron emdash
  259.   syn keyword postscrConstant   contained AE ordfeminine Lslash Oslash OE ordmasculine ae dotlessi lslash
  260.   syn keyword postscrConstant   contained oslash oe germandbls
  261. " The following are valid names, but are used as short procedure names in generated PS!
  262. " a b c d e f g h i j k l m n o p q r s t u v w x y z
  263. " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  264.  
  265. " Symbol encoding names
  266.   syn keyword postscrConstant   contained universal existential suchthat asteriskmath minus
  267.   syn keyword postscrConstant   contained congruent Alpha Beta Chi Delta Epsilon Phi Gamma Eta Iota theta1
  268.   syn keyword postscrConstant   contained Kappa Lambda Mu Nu Omicron Pi Theta Rho Sigma Tau Upsilon sigma1
  269.   syn keyword postscrConstant   contained Omega Xi Psi Zeta therefore perpendicular
  270.   syn keyword postscrConstant   contained radicalex alpha beta chi delta epsilon phi gamma eta iota phi1
  271.   syn keyword postscrConstant   contained kappa lambda mu nu omicron pi theta rho sigma tau upsilon omega1
  272.   syn keyword postscrConstant   contained Upsilon1 minute lessequal infinity club diamond heart spade
  273.   syn keyword postscrConstant   contained arrowboth arrowleft arrowup arrowright arrowdown degree plusminus
  274.   syn keyword postscrConstant   contained second greaterequal multiply proportional partialdiff divide
  275.   syn keyword postscrConstant   contained notequal equivalence approxequal arrowvertex arrowhorizex
  276.   syn keyword postscrConstant   contained aleph Ifraktur Rfraktur weierstrass circlemultiply circleplus
  277.   syn keyword postscrConstant   contained emptyset intersection union propersuperset reflexsuperset notsubset
  278.   syn keyword postscrConstant   contained propersubset reflexsubset element notelement angle gradient
  279.   syn keyword postscrConstant   contained registerserif copyrightserif trademarkserif radical dotmath
  280.   syn keyword postscrConstant   contained logicalnot logicaland logicalor arrowdblboth arrowdblleft arrowdblup
  281.   syn keyword postscrConstant   contained arrowdblright arrowdbldown omega xi psi zeta similar carriagereturn
  282.   syn keyword postscrConstant   contained lozenge angleleft registersans copyrightsans trademarksans summation
  283.   syn keyword postscrConstant   contained parenlefttp parenleftex parenleftbt bracketlefttp bracketleftex
  284.   syn keyword postscrConstant   contained bracketleftbt bracelefttp braceleftmid braceleftbt braceex euro
  285.   syn keyword postscrConstant   contained angleright integral integraltp integralex integralbt parenrighttp
  286.   syn keyword postscrConstant   contained parenrightex parenrightbt bracketrighttp bracketrightex
  287.   syn keyword postscrConstant   contained bracketrightbt bracerighttp bracerightmid bracerightbt
  288.  
  289. " ISO Latin1 encoding names
  290.   syn keyword postscrConstant   contained brokenbar copyright registered twosuperior threesuperior
  291.   syn keyword postscrConstant   contained onesuperior onequarter onehalf threequarters
  292.   syn keyword postscrConstant   contained Agrave Aacute Acircumflex Atilde Adieresis Aring Ccedilla Egrave
  293.   syn keyword postscrConstant   contained Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis
  294.   syn keyword postscrConstant   contained Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis Ugrave Uacute
  295.   syn keyword postscrConstant   contained Ucircumflex Udieresis Yacute Thorn
  296.   syn keyword postscrConstant   contained agrave aacute acircumflex atilde adieresis aring ccedilla egrave
  297.   syn keyword postscrConstant   contained eacute ecircumflex edieresis igrave iacute icircumflex idieresis
  298.   syn keyword postscrConstant   contained eth ntilde ograve oacute ocircumflex otilde odieresis ugrave uacute
  299.   syn keyword postscrConstant   contained ucircumflex udieresis yacute thorn ydieresis
  300.   syn keyword postscrConstant   contained zcaron exclamsmall Hungarumlautsmall dollaroldstyle dollarsuperior
  301.   syn keyword postscrConstant   contained ampersandsmall Acutesmall parenleftsuperior parenrightsuperior
  302.   syn keyword postscrConstant   contained twodotenleader onedotenleader zerooldstyle oneoldstyle twooldstyle
  303.   syn keyword postscrConstant   contained threeoldstyle fouroldstyle fiveoldstyle sixoldstyle sevenoldstyle
  304.   syn keyword postscrConstant   contained eightoldstyle nineoldstyle commasuperior
  305.   syn keyword postscrConstant   contained threequartersemdash periodsuperior questionsmall asuperior bsuperior
  306.   syn keyword postscrConstant   contained centsuperior dsuperior esuperior isuperior lsuperior msuperior
  307.   syn keyword postscrConstant   contained nsuperior osuperior rsuperior ssuperior tsuperior ff ffi ffl
  308.   syn keyword postscrConstant   contained parenleftinferior parenrightinferior Circumflexsmall hyphensuperior
  309.   syn keyword postscrConstant   contained Gravesmall Asmall Bsmall Csmall Dsmall Esmall Fsmall Gsmall Hsmall
  310.   syn keyword postscrConstant   contained Ismall Jsmall Ksmall Lsmall Msmall Nsmall Osmall Psmall Qsmall
  311.   syn keyword postscrConstant   contained Rsmall Ssmall Tsmall Usmall Vsmall Wsmall Xsmall Ysmall Zsmall
  312.   syn keyword postscrConstant   contained colonmonetary onefitted rupiah Tildesmall exclamdownsmall
  313.   syn keyword postscrConstant   contained centoldstyle Lslashsmall Scaronsmall Zcaronsmall Dieresissmall
  314.   syn keyword postscrConstant   contained Brevesmall Caronsmall Dotaccentsmall Macronsmall figuredash
  315.   syn keyword postscrConstant   contained hypheninferior Ogoneksmall Ringsmall Cedillasmall questiondownsmall
  316.   syn keyword postscrConstant   contained oneeighth threeeighths fiveeighths seveneighths onethird twothirds
  317.   syn keyword postscrConstant   contained zerosuperior foursuperior fivesuperior sixsuperior sevensuperior
  318.   syn keyword postscrConstant   contained eightsuperior ninesuperior zeroinferior oneinferior twoinferior
  319.   syn keyword postscrConstant   contained threeinferior fourinferior fiveinferior sixinferior seveninferior
  320.   syn keyword postscrConstant   contained eightinferior nineinferior centinferior dollarinferior periodinferior
  321.   syn keyword postscrConstant   contained commainferior Agravesmall Aacutesmall Acircumflexsmall
  322.   syn keyword postscrConstant   contained Atildesmall Adieresissmall Aringsmall AEsmall Ccedillasmall
  323.   syn keyword postscrConstant   contained Egravesmall Eacutesmall Ecircumflexsmall Edieresissmall Igravesmall
  324.   syn keyword postscrConstant   contained Iacutesmall Icircumflexsmall Idieresissmall Ethsmall Ntildesmall
  325.   syn keyword postscrConstant   contained Ogravesmall Oacutesmall Ocircumflexsmall Otildesmall Odieresissmall
  326.   syn keyword postscrConstant   contained OEsmall Oslashsmall Ugravesmall Uacutesmall Ucircumflexsmall
  327.   syn keyword postscrConstant   contained Udieresissmall Yacutesmall Thornsmall Ydieresissmall Black Bold Book
  328.   syn keyword postscrConstant   contained Light Medium Regular Roman Semibold
  329.  
  330. " Sundry standard and expert encoding names
  331.   syn keyword postscrConstant   contained trademark Scaron Ydieresis Zcaron scaron softhyphen overscore
  332.   syn keyword postscrConstant   contained graybox Sacute Tcaron Zacute sacute tcaron zacute Aogonek Scedilla
  333.   syn keyword postscrConstant   contained Zdotaccent aogonek scedilla Lcaron lcaron zdotaccent Racute Abreve
  334.   syn keyword postscrConstant   contained Lacute Cacute Ccaron Eogonek Ecaron Dcaron Dcroat Nacute Ncaron
  335.   syn keyword postscrConstant   contained Ohungarumlaut Rcaron Uring Uhungarumlaut Tcommaaccent racute abreve
  336.   syn keyword postscrConstant   contained lacute cacute ccaron eogonek ecaron dcaron dcroat nacute ncaron
  337.   syn keyword postscrConstant   contained ohungarumlaut rcaron uring uhungarumlaut tcommaaccent Gbreve
  338.   syn keyword postscrConstant   contained Idotaccent gbreve blank apple
  339. endif
  340.  
  341.  
  342. " By default level 3 includes all level 2 operators
  343. if postscr_level == 2 || postscr_level == 3
  344. " Dictionary operators
  345.   syn match postscrOperator     "\(<<\|>>\)"
  346.   syn keyword postscrOperator   undef
  347.   syn keyword postscrConstant   globaldict shareddict
  348.  
  349. " Device operators
  350.   syn keyword postscrOperator   setpagedevice currentpagedevice
  351.  
  352. " Path operators
  353.   syn keyword postscrOperator   rectclip setbbox uappend ucache upath ustrokepath arct
  354.  
  355. " Painting operators
  356.   syn keyword postscrOperator   rectfill rectstroke ufill ueofill ustroke
  357.  
  358. " Array operators
  359.   syn keyword postscrOperator   currentpacking setpacking packedarray
  360.  
  361. " Misc operators
  362.   syn keyword postscrOperator   languagelevel
  363.  
  364. " Insideness operators
  365.   syn keyword postscrOperator   infill ineofill instroke inufill inueofill inustroke
  366.  
  367. " GState operators
  368.   syn keyword postscrOperator   gstate setgstate currentgstate setcolor
  369.   syn keyword postscrOperator   setcolorspace currentcolorspace setstrokeadjust currentstrokeadjust
  370.   syn keyword postscrOperator   currentcolor
  371.  
  372. " Device gstate operators
  373.   syn keyword postscrOperator   sethalftone currenthalftone setoverprint currentoverprint
  374.   syn keyword postscrOperator   setcolorrendering currentcolorrendering
  375.  
  376. " Character operators
  377.   syn keyword postscrConstant   GlobalFontDirectory SharedFontDirectory
  378.   syn keyword postscrOperator   glyphshow selectfont
  379.   syn keyword postscrOperator   addglyph undefinefont xshow xyshow yshow
  380.  
  381. " Pattern operators
  382.   syn keyword postscrOperator   makepattern setpattern execform
  383.  
  384. " Resource operators
  385.   syn keyword postscrOperator   defineresource undefineresource findresource resourcestatus
  386.   syn keyword postscrRepeat     resourceforall
  387.  
  388. " File operators
  389.   syn keyword postscrOperator   filter printobject writeobject setobjectformat currentobjectformat
  390.  
  391. " VM operators
  392.   syn keyword postscrOperator   currentshared setshared defineuserobject execuserobject undefineuserobject
  393.   syn keyword postscrOperator   gcheck scheck startjob currentglobal setglobal
  394.   syn keyword postscrConstant   UserObjects
  395.  
  396. " Interpreter operators
  397.   syn keyword postscrOperator   setucacheparams setvmthreshold ucachestatus setsystemparams
  398.   syn keyword postscrOperator   setuserparams currentuserparams setcacheparams currentcacheparams
  399.   syn keyword postscrOperator   currentdevparams setdevparams vmreclaim currentsystemparams
  400.  
  401. " PS2 constants
  402.   syn keyword postscrConstant   contained DeviceCMYK Pattern Indexed Separation Cyan Magenta Yellow Black
  403.   syn keyword postscrConstant   contained CIEBasedA CIEBasedABC CIEBasedDEF CIEBasedDEFG
  404.  
  405. " PS2 $error dictionary entries
  406.   syn keyword postscrConstant   contained newerror errorname command errorinfo ostack estack dstack
  407.   syn keyword postscrConstant   contained recordstacks binary
  408.  
  409. " PS2 Category dictionary
  410.   syn keyword postscrConstant   contained DefineResource UndefineResource FindResource ResourceStatus
  411.   syn keyword postscrConstant   contained ResourceForAll Category InstanceType ResourceFileName
  412.  
  413. " PS2 Category names
  414.   syn keyword postscrConstant   contained Font Encoding Form Pattern ProcSet ColorSpace Halftone
  415.   syn keyword postscrConstant   contained ColorRendering Filter ColorSpaceFamily Emulator IODevice
  416.   syn keyword postscrConstant   contained ColorRenderingType FMapType FontType FormType HalftoneType
  417.   syn keyword postscrConstant   contained ImageType PatternType Category Generic
  418.  
  419. " PS2 pagedevice dictionary entries
  420.   syn keyword postscrConstant   contained PageSize MediaColor MediaWeight MediaType InputAttributes ManualFeed
  421.   syn keyword postscrConstant   contained OutputType OutputAttributes NumCopies Collate Duplex Tumble
  422.   syn keyword postscrConstant   contained Separations HWResolution Margins NegativePrint MirrorPrint
  423.   syn keyword postscrConstant   contained CutMedia AdvanceMedia AdvanceDistance ImagingBBox
  424.   syn keyword postscrConstant   contained Policies Install BeginPage EndPage PolicyNotFound PolicyReport
  425.   syn keyword postscrConstant   contained ManualSize OutputFaceUp Jog
  426.   syn keyword postscrConstant   contained Bind BindDetails Booklet BookletDetails CollateDetails
  427.   syn keyword postscrConstant   contained DeviceRenderingInfo ExitJamRecovery Fold FoldDetails Laminate
  428.   syn keyword postscrConstant   contained ManualFeedTimeout Orientation OutputPage
  429.   syn keyword postscrConstant   contained PostRenderingEnhance PostRenderingEnhanceDetails
  430.   syn keyword postscrConstant   contained PreRenderingEnhance PreRenderingEnhanceDetails
  431.   syn keyword postscrConstant   contained Signature SlipSheet Staple StapleDetails Trim
  432.   syn keyword postscrConstant   contained ProofSet REValue PrintQuality ValuesPerColorComponent AntiAlias
  433.  
  434. " PS2 PDL resource entries
  435.   syn keyword postscrConstant   contained Selector LanguageFamily LanguageVersion
  436.  
  437. " PS2 halftone dictionary entries
  438.   syn keyword postscrConstant   contained HalftoneType HalftoneName
  439.   syn keyword postscrConstant   contained AccurateScreens ActualAngle Xsquare Ysquare AccurateFrequency
  440.   syn keyword postscrConstant   contained Frequency SpotFunction Angle Width Height Thresholds
  441.   syn keyword postscrConstant   contained RedFrequency RedSpotFunction RedAngle RedWidth RedHeight
  442.   syn keyword postscrConstant   contained GreenFrequency GreenSpotFunction GreenAngle GreenWidth GreenHeight
  443.   syn keyword postscrConstant   contained BlueFrequency BlueSpotFunction BlueAngle BlueWidth BlueHeight
  444.   syn keyword postscrConstant   contained GrayFrequency GrayAngle GraySpotFunction GrayWidth GrayHeight
  445.   syn keyword postscrConstant   contained GrayThresholds BlueThresholds GreenThresholds RedThresholds
  446.   syn keyword postscrConstant   contained TransferFunction
  447.  
  448. " PS2 CSR dictionaries
  449.   syn keyword postscrConstant   contained RangeA DecodeA MatrixA RangeABC DecodeABC MatrixABC BlackPoint
  450.   syn keyword postscrConstant   contained RangeLMN DecodeLMN MatrixLMN WhitePoint RangeDEF DecodeDEF RangeHIJ
  451.   syn keyword postscrConstant   contained RangeDEFG DecodeDEFG RangeHIJK Table
  452.  
  453. " PS2 CRD dictionaries
  454.   syn keyword postscrConstant   contained ColorRenderingType EncodeLMB EncodeABC RangePQR MatrixPQR
  455.   syn keyword postscrConstant   contained AbsoluteColorimetric RelativeColorimetric Saturation Perceptual
  456.   syn keyword postscrConstant   contained TransformPQR RenderTable
  457.  
  458. " PS2 Pattern dictionary
  459.   syn keyword postscrConstant   contained PatternType PaintType TilingType XStep YStep
  460.  
  461. " PS2 Image dictionary
  462.   syn keyword postscrConstant   contained ImageType ImageMatrix MultipleDataSources DataSource
  463.   syn keyword postscrConstant   contained BitsPerComponent Decode Interpolate
  464.  
  465. " PS2 Font dictionaries
  466.   syn keyword postscrConstant   contained FontType FontMatrix FontName FontInfo LanguageLevel WMode Encoding
  467.   syn keyword postscrConstant   contained UniqueID StrokeWidth Metrics Metrics2 CDevProc CharStrings Private
  468.   syn keyword postscrConstant   contained FullName Notice version ItalicAngle isFixedPitch UnderlinePosition
  469.   syn keyword postscrConstant   contained FMapType Encoding FDepVector PrefEnc EscChar ShiftOut ShiftIn
  470.   syn keyword postscrConstant   contained WeightVector Blend $Blend CIDFontType sfnts CIDSystemInfo CodeMap
  471.   syn keyword postscrConstant   contained CMap CIDFontName CIDSystemInfo UIDBase CIDDevProc CIDCount
  472.   syn keyword postscrConstant   contained CIDMapOffset FDArray FDBytes GDBytes GlyphData GlyphDictionary
  473.   syn keyword postscrConstant   contained SDBytes SubrMapOffset SubrCount BuildGlyph CIDMap FID MIDVector
  474.   syn keyword postscrConstant   contained Ordering Registry Supplement CMapName CMapVersion UIDOffset
  475.   syn keyword postscrConstant   contained SubsVector UnderlineThickness FamilyName FontBBox CurMID
  476.   syn keyword postscrConstant   contained Weight
  477.  
  478. " PS2 User paramters
  479.   syn keyword postscrConstant   contained MaxFontItem MinFontCompress MaxUPathItem MaxFormItem MaxPatternItem
  480.   syn keyword postscrConstant   contained MaxScreenItem MaxOpStack MaxDictStack MaxExecStack MaxLocalVM
  481.   syn keyword postscrConstant   contained VMReclaim VMThreshold
  482.  
  483. " PS2 System paramters
  484.   syn keyword postscrConstant   contained SystemParamsPassword StartJobPassword BuildTime ByteOrder RealFormat
  485.   syn keyword postscrConstant   contained MaxFontCache CurFontCache MaxOutlineCache CurOutlineCache
  486.   syn keyword postscrConstant   contained MaxUPathCache CurUPathCache MaxFormCache CurFormCache
  487.   syn keyword postscrConstant   contained MaxPatternCache CurPatternCache MaxScreenStorage CurScreenStorage
  488.   syn keyword postscrConstant   contained MaxDisplayList CurDisplayList
  489.  
  490. " PS2 LZW Filters
  491.   syn keyword postscrConstant   contained Predictor
  492.  
  493. " Paper Size operators
  494.   syn keyword postscrOperator   letter lettersmall legal ledger 11x17 a4 a3 a4small b5 note
  495.  
  496. " Paper Tray operators
  497.   syn keyword postscrOperator   lettertray legaltray ledgertray a3tray a4tray b5tray 11x17tray
  498.  
  499. " SCC compatibility operators
  500.   syn keyword postscrOperator   sccbatch sccinteractive setsccbatch setsccinteractive
  501.  
  502. " Page duplexing operators
  503.   syn keyword postscrOperator   duplexmode firstside newsheet setduplexmode settumble tumble
  504.  
  505. " Device compatability operators
  506.   syn keyword postscrOperator   devdismount devformat devmount devstatus
  507.   syn keyword postscrRepeat     devforall
  508.  
  509. " Imagesetter compatability operators
  510.   syn keyword postscrOperator   accuratescreens checkscreen pagemargin pageparams setaccuratescreens setpage
  511.   syn keyword postscrOperator   setpagemargin setpageparams
  512.  
  513. " Misc compatability operators
  514.   syn keyword postscrOperator   appletalktype buildtime byteorder checkpassword defaulttimeouts diskonline
  515.   syn keyword postscrOperator   diskstatus manualfeed manualfeedtimeout margins mirrorprint pagecount
  516.   syn keyword postscrOperator   pagestackorder printername processcolors sethardwareiomode setjobtimeout
  517.   syn keyword postscrOperator   setpagestockorder setprintername setresolution doprinterrors dostartpage
  518.   syn keyword postscrOperator   hardwareiomode initializedisk jobname jobtimeout ramsize realformat resolution
  519.   syn keyword postscrOperator   setdefaulttimeouts setdoprinterrors setdostartpage setdosysstart
  520.   syn keyword postscrOperator   setuserdiskpercent softwareiomode userdiskpercent waittimeout
  521.   syn keyword postscrOperator   setsoftwareiomode dosysstart emulate setmargins setmirrorprint
  522.  
  523. endif " PS2 highlighting
  524.  
  525. if postscr_level == 3
  526. " Shading operators
  527.   syn keyword postscrOperator   setsmoothness currentsmoothness shfill
  528.  
  529. " Clip operators
  530.   syn keyword postscrOperator   clipsave cliprestore
  531.  
  532. " Pagedevive operators
  533.   syn keyword postscrOperator   setpage setpageparams
  534.  
  535. " Device gstate operators
  536.   syn keyword postscrOperator   findcolorrendering
  537.  
  538. " Font operators
  539.   syn keyword postscrOperator   composefont
  540.  
  541. " PS LL3 Output device resource entries
  542.   syn keyword postscrConstant   contained DeviceN TrappingDetailsType
  543.  
  544. " PS LL3 pagdevice dictionary entries
  545.   syn keyword postscrConstant   contained DeferredMediaSelection ImageShift InsertSheet LeadingEdge MaxSeparations
  546.   syn keyword postscrConstant   contained MediaClass MediaPosition OutputDevice PageDeviceName PageOffset ProcessColorModel
  547.   syn keyword postscrConstant   contained RollFedMedia SeparationColorNames SeparationOrder Trapping TrappingDetails
  548.   syn keyword postscrConstant   contained TraySwitch UseCIEColor
  549.   syn keyword postscrConstant   contained ColorantDetails ColorantName ColorantType NeutralDensity TrappingOrder
  550.   syn keyword postscrConstant   contained ColorantSetName
  551.  
  552. " PS LL3 trapping dictionary entries
  553.   syn keyword postscrConstant   contained BlackColorLimit BlackDensityLimit BlackWidth ColorantZoneDetails
  554.   syn keyword postscrConstant   contained SlidingTrapLimit StepLimit TrapColorScaling TrapSetName TrapWidth
  555.   syn keyword postscrConstant   contained ImageResolution ImageToObjectTrapping ImageTrapPlacement
  556.   syn keyword postscrConstant   contained StepLimit TrapColorScaling Enabled ImageInternalTrapping
  557.  
  558. " PS LL3 filters and entries
  559.   syn keyword postscrConstant   contained ReusableStreamDecode CloseSource CloseTarget UnitSize LowBitFirst
  560.   syn keyword postscrConstant   contained FlateEncode FlateDecode DecodeParams Intent AsyncRead
  561.  
  562. " PS LL3 halftone dictionary entries
  563.   syn keyword postscrConstant   contained Height2 Width2
  564.  
  565. " PS LL3 function dictionary entries
  566.   syn keyword postscrConstant   contained FunctionType Domain Range Order BitsPerSample Encode Size C0 C1 N
  567.   syn keyword postscrConstant   contained Functions Bounds
  568.  
  569. " PS LL3 image dictionary entries
  570.   syn keyword postscrConstant   contained InterleaveType MaskDict DataDict MaskColor
  571.  
  572. " PS LL3 Pattern and shading dictionary entries
  573.   syn keyword postscrConstant   contained Shading ShadingType Background ColorSpace Coords Extend Function
  574.   syn keyword postscrConstant   contained VerticesPerRow BitsPerCoordinate BitsPerFlag
  575.  
  576. " PS LL3 image dictionary entries
  577.   syn keyword postscrConstant   contained XOrigin YOrigin UnpaintedPath PixelCopy
  578.  
  579. " PS LL3 colorrendering procedures
  580.   syn keyword postscrProcedure  GetHalftoneName GetPageDeviceName GetSubstituteCRD
  581.  
  582. " PS LL3 CIDInit procedures
  583.   syn keyword postscrProcedure  beginbfchar beginbfrange begincidchar begincidrange begincmap begincodespacerange
  584.   syn keyword postscrProcedure  beginnotdefchar beginnotdefrange beginrearrangedfont beginusematrix
  585.   syn keyword postscrProcedure  endbfchar endbfrange endcidchar endcidrange endcmap endcodespacerange
  586.   syn keyword postscrProcedure  endnotdefchar endnotdefrange endrearrangedfont endusematrix
  587.   syn keyword postscrProcedure  StartData usefont usecmp
  588.  
  589. " PS LL3 Trapping procedures
  590.   syn keyword postscrProcedure  settrapparams currenttrapparams settrapzone
  591.  
  592. " PS LL3 BitmapFontInit procedures
  593.   syn keyword postscrProcedure  removeall removeglyphs
  594.  
  595. " PS LL3 Font names
  596.   if exists("postscr_fonts")
  597.     syn keyword postscrConstant contained AlbertusMT AlbertusMT-Italic AlbertusMT-Light Apple-Chancery Apple-ChanceryCE
  598.     syn keyword postscrConstant contained AntiqueOlive-Roman AntiqueOlive-Italic AntiqueOlive-Bold AntiqueOlive-Compact
  599.     syn keyword postscrConstant contained AntiqueOliveCE-Roman AntiqueOliveCE-Italic AntiqueOliveCE-Bold AntiqueOliveCE-Compact
  600.     syn keyword postscrConstant contained ArialMT Arial-ItalicMT Arial-LightMT Arial-BoldMT Arial-BoldItalicMT
  601.     syn keyword postscrConstant contained ArialCE ArialCE-Italic ArialCE-Light ArialCE-Bold ArialCE-BoldItalic
  602.     syn keyword postscrConstant contained AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique
  603.     syn keyword postscrConstant contained AvantGardeCE-Book AvantGardeCE-BookOblique AvantGardeCE-Demi AvantGardeCE-DemiOblique
  604.     syn keyword postscrConstant contained Bodoni Bodoni-Italic Bodoni-Bold Bodoni-BoldItalic Bodoni-Poster Bodoni-PosterCompressed
  605.     syn keyword postscrConstant contained BodoniCE BodoniCE-Italic BodoniCE-Bold BodoniCE-BoldItalic BodoniCE-Poster BodoniCE-PosterCompressed
  606.     syn keyword postscrConstant contained Bookman-Light Bookman-LightItalic Bookman-Demi Bookman-DemiItalic
  607.     syn keyword postscrConstant contained BookmanCE-Light BookmanCE-LightItalic BookmanCE-Demi BookmanCE-DemiItalic
  608.     syn keyword postscrConstant contained Carta Chicago ChicagoCE Clarendon Clarendon-Light Clarendon-Bold
  609.     syn keyword postscrConstant contained ClarendonCE ClarendonCE-Light ClarendonCE-Bold CooperBlack CooperBlack-Italic
  610.     syn keyword postscrConstant contained Copperplate-ThirtyTwoBC CopperPlate-ThirtyThreeBC Coronet-Regular CoronetCE-Regular
  611.     syn keyword postscrConstant contained CourierCE CourierCE-Oblique CourierCE-Bold CourierCE-BoldOblique
  612.     syn keyword postscrConstant contained Eurostile Eurostile-Bold Eurostile-ExtendedTwo Eurostile-BoldExtendedTwo
  613.     syn keyword postscrConstant contained Eurostile EurostileCE-Bold EurostileCE-ExtendedTwo EurostileCE-BoldExtendedTwo
  614.     syn keyword postscrConstant contained Geneva GenevaCE GillSans GillSans-Italic GillSans-Bold GillSans-BoldItalic GillSans-BoldCondensed
  615.     syn keyword postscrConstant contained GillSans-Light GillSans-LightItalic GillSans-ExtraBold
  616.     syn keyword postscrConstant contained GillSansCE-Roman GillSansCE-Italic GillSansCE-Bold GillSansCE-BoldItalic GillSansCE-BoldCondensed
  617.     syn keyword postscrConstant contained GillSansCE-Light GillSansCE-LightItalic GillSansCE-ExtraBold
  618.     syn keyword postscrConstant contained Goudy Goudy-Italic Goudy-Bold Goudy-BoldItalic Goudy-ExtraBould
  619.     syn keyword postscrConstant contained HelveticaCE HelveticaCE-Oblique HelveticaCE-Bold HelveticaCE-BoldOblique
  620.     syn keyword postscrConstant contained Helvetica-Condensed Helvetica-Condensed-Oblique Helvetica-Condensed-Bold Helvetica-Condensed-BoldObl
  621.     syn keyword postscrConstant contained HelveticaCE-Condensed HelveticaCE-Condensed-Oblique HelveticaCE-Condensed-Bold
  622.     syn keyword postscrConstant contained HelveticaCE-Condensed-BoldObl Helvetica-Narrow Helvetica-Narrow-Oblique Helvetica-Narrow-Bold
  623.     syn keyword postscrConstant contained Helvetica-Narrow-BoldOblique HelveticaCE-Narrow HelveticaCE-Narrow-Oblique HelveticaCE-Narrow-Bold
  624.     syn keyword postscrConstant contained HelveticaCE-Narrow-BoldOblique HoeflerText-Regular HoeflerText-Italic HoeflerText-Black
  625.     syn keyword postscrConstant contained HoeflerText-BlackItalic HoeflerText-Ornaments HoeflerTextCE-Regular HoeflerTextCE-Italic
  626.     syn keyword postscrConstant contained HoeflerTextCE-Black HoeflerTextCE-BlackItalic
  627.     syn keyword postscrConstant contained JoannaMT JoannaMT-Italic JoannaMT-Bold JoannaMT-BoldItalic
  628.     syn keyword postscrConstant contained JoannaMTCE JoannaMTCE-Italic JoannaMTCE-Bold JoannaMTCE-BoldItalic
  629.     syn keyword postscrConstant contained LetterGothic LetterGothic-Slanted LetterGothic-Bold LetterGothic-BoldSlanted
  630.     syn keyword postscrConstant contained LetterGothicCE LetterGothicCE-Slanted LetterGothicCE-Bold LetterGothicCE-BoldSlanted
  631.     syn keyword postscrConstant contained LubalinGraph-Book LubalinGraph-BookOblique LubalinGraph-Demi LubalinGraph-DemiOblique
  632.     syn keyword postscrConstant contained LubalinGraphCE-Book LubalinGraphCE-BookOblique LubalinGraphCE-Demi LubalinGraphCE-DemiOblique
  633.     syn keyword postscrConstant contained Marigold Monaco MonacoCE MonaLisa-Recut Oxford Symbol Tekton
  634.     syn keyword postscrConstant contained NewCennturySchlbk-Roman NewCenturySchlbk-Italic NewCenturySchlbk-Bold NewCenturySchlbk-BoldItalic
  635.     syn keyword postscrConstant contained NewCenturySchlbkCE-Roman NewCenturySchlbkCE-Italic NewCenturySchlbkCE-Bold
  636.     syn keyword postscrConstant contained NewCenturySchlbkCE-BoldItalic NewYork NewYorkCE
  637.     syn keyword postscrConstant contained Optima Optima-Italic Optima-Bold Optima-BoldItalic
  638.     syn keyword postscrConstant contained OptimaCE OptimaCE-Italic OptimaCE-Bold OptimaCE-BoldItalic
  639.     syn keyword postscrConstant contained Palatino-Roman Palatino-Italic Palatino-Bold Palatino-BoldItalic
  640.     syn keyword postscrConstant contained PalatinoCE-Roman PalatinoCE-Italic PalatinoCE-Bold PalatinoCE-BoldItalic
  641.     syn keyword postscrConstant contained StempelGaramond-Roman StempelGaramond-Italic StempelGaramond-Bold StempelGaramond-BoldItalic
  642.     syn keyword postscrConstant contained StempelGaramondCE-Roman StempelGaramondCE-Italic StempelGaramondCE-Bold StempelGaramondCE-BoldItalic
  643.     syn keyword postscrConstant contained TimesCE-Roman TimesCE-Italic TimesCE-Bold TimesCE-BoldItalic
  644.     syn keyword postscrConstant contained TimesNewRomanPSMT TimesNewRomanPS-ItalicMT TimesNewRomanPS-BoldMT TimesNewRomanPS-BoldItalicMT
  645.     syn keyword postscrConstant contained TimesNewRomanCE TimesNewRomanCE-Italic TimesNewRomanCE-Bold TimesNewRomanCE-BoldItalic
  646.     syn keyword postscrConstant contained Univers Univers-Oblique Univers-Bold Univers-BoldOblique
  647.     syn keyword postscrConstant contained UniversCE-Medium UniversCE-Oblique UniversCE-Bold UniversCE-BoldOblique
  648.     syn keyword postscrConstant contained Univers-Light Univers-LightOblique UniversCE-Light UniversCE-LightOblique
  649.     syn keyword postscrConstant contained Univers-Condensed Univers-CondensedOblique Univers-CondensedBold Univers-CondensedBoldOblique
  650.     syn keyword postscrConstant contained UniversCE-Condensed UniversCE-CondensedOblique UniversCE-CondensedBold UniversCE-CondensedBoldOblique
  651.     syn keyword postscrConstant contained Univers-Extended Univers-ExtendedObl Univers-BoldExt Univers-BoldExtObl
  652.     syn keyword postscrConstant contained UniversCE-Extended UniversCE-ExtendedObl UniversCE-BoldExt UniversCE-BoldExtObl
  653.     syn keyword postscrConstant contained Wingdings-Regular ZapfChancery-MediumItalic ZapfChanceryCE-MediumItalic ZapfDingBats
  654.   endif " Font names
  655.  
  656. endif " PS LL3 highlighting
  657.  
  658.  
  659. if exists("postscr_ghostscript")
  660.   " GS gstate operators
  661.   syn keyword postscrOperator   .setaccuratecurves .currentaccuratecurves .setclipoutside
  662.   syn keyword postscrOperator   .setdashadapt .currentdashadapt .setdefaultmatrix .setdotlength
  663.   syn keyword postscrOperator   .currentdotlength .setfilladjust2 .currentfilladjust2
  664.   syn keyword postscrOperator   .currentclipoutside .setcurvejoin .currentcurvejoin
  665.   syn keyword postscrOperator   .setblendmode .currentblendmode .setopacityalpha .currentopacityalpha .setshapealpha .currentshapealpha
  666.   syn keyword postscrOperator   .setlimitclamp .currentlimitclamp .setoverprintmode .currentoverprintmode
  667.  
  668.   " GS path operators
  669.   syn keyword postscrOperator   .dashpath .rectappend
  670.  
  671.   " GS painting operators
  672.   syn keyword postscrOperator   .setrasterop .currentrasterop .setsourcetransparent
  673.   syn keyword postscrOperator   .settexturetransparent .currenttexturetransparent
  674.   syn keyword postscrOperator   .currentsourcetransparent
  675.  
  676.   " GS character operators
  677.   syn keyword postscrOperator   .charboxpath .type1execchar %Type1BuildChar %Type1BuildGlyph
  678.  
  679.   " GS mathematical operators
  680.   syn keyword postscrMathOperator arccos arcsin
  681.  
  682.   " GS dictionary operators
  683.   syn keyword postscrOperator   .dicttomark .forceput .forceundef .knownget .setmaxlength
  684.  
  685.   " GS byte and string operators
  686.   syn keyword postscrOperator   .type1encrypt .type1decrypt
  687.   syn keyword postscrOperator   .bytestring .namestring .stringmatch
  688.  
  689.   " GS relational operators (seem like math ones to me!)
  690.   syn keyword postscrMathOperator max min
  691.  
  692.   " GS file operators
  693.   syn keyword postscrOperator   findlibfile unread writeppmfile
  694.   syn keyword postscrOperator   .filename .fileposition .peekstring .unread
  695.  
  696.   " GS vm operators
  697.   syn keyword postscrOperator   .forgetsave
  698.  
  699.   " GS device operators
  700.   syn keyword postscrOperator   copydevice .getdevice makeimagedevice makewordimagedevice copyscanlines
  701.   syn keyword postscrOperator   setdevice currentdevice getdeviceprops putdeviceprops flushpage
  702.   syn keyword postscrOperator   finddevice findprotodevice .getbitsrect
  703.  
  704.   " GS misc operators
  705.   syn keyword postscrOperator   getenv .makeoperator .setdebug .oserrno .oserror .execn
  706.  
  707.   " GS rendering stack operators
  708.   syn keyword postscrOperator   .begintransparencygroup .discardtransparencygroup .endtransparencygroup
  709.   syn keyword postscrOperator   .begintransparencymask .discardtransparencymask .endtransparencymask .inittransparencymask
  710.   syn keyword postscrOperator   .settextknockout .currenttextknockout
  711.  
  712.   " GS filters
  713.   syn keyword postscrConstant   contained BCPEncode BCPDecode eexecEncode eexecDecode PCXDecode
  714.   syn keyword postscrConstant   contained PixelDifferenceEncode PixelDifferenceDecode
  715.   syn keyword postscrConstant   contained PNGPredictorDecode TBCPEncode TBCPDecode zlibEncode
  716.   syn keyword postscrConstant   contained zlibDecode PNGPredictorEncode PFBDecode
  717.   syn keyword postscrConstant   contained MD5Encode
  718.  
  719.   " GS filter keys
  720.   syn keyword postscrConstant   contained InitialCodeLength FirstBitLowOrder BlockData DecodedByteAlign
  721.  
  722.   " GS device parameters
  723.   syn keyword postscrConstant   contained BitsPerPixel .HWMargins HWSize Name GrayValues
  724.   syn keyword postscrConstant   contained ColorValues TextAlphaBits GraphicsAlphaBits BufferSpace
  725.   syn keyword postscrConstant   contained OpenOutputFile PageCount BandHeight BandWidth BandBufferSpace
  726.   syn keyword postscrConstant   contained ViewerPreProcess GreenValues BlueValues OutputFile
  727.   syn keyword postscrConstant   contained MaxBitmap RedValues
  728.  
  729. endif " GhostScript highlighting
  730.  
  731. " Define the default highlighting.
  732. " For version 5.7 and earlier: only when not done already
  733. " For version 5.8 and later: only when an item doesn't have highlighting yet
  734. if version >= 508 || !exists("did_postscr_syntax_inits")
  735.   if version < 508
  736.     let did_postscr_syntax_inits = 1
  737.     command -nargs=+ HiLink hi link <args>
  738.   else
  739.     command -nargs=+ HiLink hi def link <args>
  740.   endif
  741.  
  742.   HiLink postscrComment         Comment
  743.  
  744.   HiLink postscrConstant        Constant
  745.   HiLink postscrString          String
  746.   HiLink postscrASCIIString     postscrString
  747.   HiLink postscrHexString       postscrString
  748.   HiLink postscrASCII85String   postscrString
  749.   HiLink postscrNumber          Number
  750.   HiLink postscrInteger         postscrNumber
  751.   HiLink postscrHex             postscrNumber
  752.   HiLink postscrRadix           postscrNumber
  753.   HiLink postscrFloat           Float
  754.   HiLink postscrBoolean         Boolean
  755.  
  756.   HiLink postscrIdentifier      Identifier
  757.   HiLink postscrProcedure       Function
  758.  
  759.   HiLink postscrName            Statement
  760.   HiLink postscrConditional     Conditional
  761.   HiLink postscrRepeat          Repeat
  762.   HiLink postscrOperator        Operator
  763.   HiLink postscrMathOperator    postscrOperator
  764.   HiLink postscrLogicalOperator postscrOperator
  765.   HiLink postscrBinaryOperator  postscrOperator
  766.  
  767.   HiLink postscrDSCComment      SpecialComment
  768.   HiLink postscrSpecialChar     SpecialChar
  769.  
  770.   HiLink postscrTodo            Todo
  771.  
  772.   HiLink postscrError           Error
  773.   HiLink postscrSpecialCharError postscrError
  774.   HiLink postscrASCII85CharError postscrError
  775.   HiLink postscrHexCharError    postscrError
  776.   HiLink postscrIdentifierError postscrError
  777.  
  778.   delcommand HiLink
  779. endif
  780.  
  781. let b:current_syntax = "postscr"
  782.  
  783. " vim: ts=8
  784.